package com.zshan.clinic.common.util.desensitization;

import com.fasterxml.jackson.annotation.JacksonAnnotationsInside;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import java.lang.annotation.*;

@Target({ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@JacksonAnnotationsInside
@JsonSerialize(using = MaskingSerializer.class)
public @interface Mask {
    MaskType type();
    /** 对 CUSTOM 生效 */
    int keepLeft() default 0;
    int keepRight() default 0;
}

